<?php
error_reporting(0);
include '../comm/config.php';
include_once '../comm/wjt.php';
include_once '../comm/checkpostandget.php';
$tag="center";
if ($_GET['from']!='') {
    $url = urldecode(trim($_GET['from']));
    $duoduomsg = '激活账号';
} 
else {
    $url = 'center.php';
    $duoduomsg = '用户中心';
}
$config = get_phpwind_config();
if ($_GET['bbsfrom']) {
    $bbsurl = urldecode(trim($_GET['bbsfrom']));
    $bbsmsg = '论坛注册前页面';
} 
else {
    $bbsurl = $config['phpdomain'];
    $bbsmsg = '论坛首页';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>论坛整合 - 用户中心</title>
<link href="../css/usercss.css" rel="stylesheet" type="text/css" />
<link href="../template/<?=MOBAN?>/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript"> 
function countDown(maxtime, fn) {
    var timer = setInterval(function() {
        if (maxtime >= 0) {
            fn(maxtime);
            --maxtime;
        } else {
            clearInterval(timer);
            do_location()
        }
    },1000);
}
 
function do_location() {
    document.location.href = '<?=$url?>';
}
</script>
<style>
.word a{ font-size:14px; font-weight:bold}
</style>
</head>
<body>
<?php
include("../template/".MOBAN."/header.tpl.php");
?>
<?php
include("../template/".MOBAN."/nav.tpl.php");
?>
<div id="maincenter">
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="50" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td height="50" align="center"><img src="../images/reg.gif" alt="phpwind注册" width="637" height="31" /></td>
  </tr>
  <tr>
    <td height="50" align="center"></td>
  </tr>
  <tr>
    <td height="50" align="center" class="word" style="font-size:14px">
      <?php
        
        echo '您已经同步注册了我们的论坛，您可以前往<a href="'.$bbsurl.'" target="_blank"><font color="red">'.$bbsmsg.'</font></a>，或者直接进入<a href="'.$url.'"><font color="red">'.$duoduomsg.'</font></a>';
    ?>
    <br/><br/>
    <div style="font-size:12px"><b id="time" style="color:#03F">5</b> 秒钟后页面将自动跳转，如果页面无响应，请点击这里，手动跳转页面。</div>
    <script>countDown(5,function(msg) {document.getElementById('time').innerHTML = msg;}); </script>
         </td>
  </tr>
</table>
</div>
<?php
include("../template/".MOBAN."/footer.tpl.php");
?>
</body>
</html>

